package com.ddyx.mapper;

import java.util.List;

import com.ddyx.entity.Goods;
import com.ddyx.model.domain.GoodsInfo;
import com.ddyx.model.domain.GoodsSku;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface GoodsMapper extends Mapper<Goods>  {

	int countGoods(@Param("storeNo") String storeNo,@Param("goodsId") String goodsId,@Param("soldout") String soldout,@Param("searchName") String searchName);
	
	List<GoodsInfo> getGoodsList(@Param("storeNo") String storeNo,@Param("goodsId") String goodsId,@Param("soldout") String soldout,@Param("searchName") String searchName,@Param("start") int start,@Param("size") int size);
	 
	List<GoodsSku> getGoodsSku(@Param("storeNo") String storeNo,@Param("goodsId") String goodsId);
	
	int updateGoodsQty(@Param("id") String id,@Param("goodsQty") int goodsQty);
	
	int sumStockGoodsQty(@Param("id") String id,@Param("goodsId") Integer goodsId,@Param("specsName") String specsName);
	
	int updateStoreGoodsQty(@Param("storeNo") String storeNo,@Param("goodsId") Integer goodsId,@Param("specsName") String specsName,@Param("goodsQty") int goodsQty);
}
